/*  */
"use strict"
/** @param {import("egg").Application} app */
module.exports = app => {
	const Sequelize = app.Sequelize
	const sequelize = app.model
	let AdCount = sequelize.define("AdCount", {
		oid: {
			type: Sequelize.INTEGER
		},
		apprentice: {
			type: Sequelize.JSON,
			defaultValue: [],
			comment: "徒弟"
		},// 指定时间的徒弟
		date: {
			type: Sequelize.DATEONLY,
		},
		adClick: {
			type: Sequelize.INTEGER,
			defaultValue: 0
		}
	}, {
		tableName: "ad_channel_count",
		timestamps: false,
	})
	return AdCount
}
//20181116